#ifndef GLOBALRWXML_H
#define GLOBALRWXML_H

#include <memory>

#include "rwxml.h"


//封装RwXml全局变量
class GlobalRwXml
{
public:
    static std::shared_ptr<RwXml> getRwxml();
    static std::shared_ptr<RwXml> getTrafficDom();

    static void setDomPath(const char *pPath);
    static void setTrafficDomPath(const char *pPath);
    static void setDom(TiXmlDocument *pDoc);

private:
    GlobalRwXml();
    ~GlobalRwXml();

    static std::shared_ptr<RwXml> m_pRwXml;
    static std::shared_ptr<RwXml> m_pTrafficDom;
};

#endif // GLOBALRWXML_H
